package com.ygqh.baby.model;

import com.ygqh.baby.ao.BalanceType;
import com.ygqh.baby.ao.OperationType;
import com.ygqh.baby.ao.RebateType;
import com.ygqh.baby.utils.PlatformUtil;

import java.math.BigDecimal;
import java.util.Date;

public class YgUserBalanceDetailModel {

	private Long balanceDetailId;

	private BigDecimal incomePayPrice;

	private BigDecimal balancePrice;

	private BalanceType priceType;

	private String operation;

	private OperationType operationType;

	private BigDecimal commissionRate;

	private String orderId;

	private Long orderDetailId;

	private String userName;

	private Date createTime;

	private RebateType rebateType;

	private String ubdOrderId;

	private String productName;

	private String platformNo;

	public Long getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(Long orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getUbdOrderId() {
		return ubdOrderId;
	}

	public void setUbdOrderId(String ubdOrderId) {
		this.ubdOrderId = ubdOrderId;
	}

	public BigDecimal getCommissionRate() {
		return commissionRate;
	}

	public void setCommissionRate(BigDecimal commissionRate) {
		this.commissionRate = commissionRate;
	}

	public OperationType getOperationType() {
		return operationType;
	}

	public void setOperationType(OperationType operationType) {
		this.operationType = operationType;
	}

	public RebateType getRebateType() {
		return rebateType;
	}

	public void setRebateType(RebateType rebateType) {
		this.rebateType = rebateType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getBalanceDetailId() {
		return balanceDetailId;
	}

	public void setBalanceDetailId(Long balanceDetailId) {
		this.balanceDetailId = balanceDetailId;
	}

	public BigDecimal getIncomePayPrice() {
		return incomePayPrice;
	}

	public void setIncomePayPrice(BigDecimal incomePayPrice) {
		this.incomePayPrice = incomePayPrice;
	}

	public BigDecimal getBalancePrice() {
		return balancePrice;
	}

	public void setBalancePrice(BigDecimal balancePrice) {
		this.balancePrice = balancePrice;
	}

	public BalanceType getPriceType() {
		return priceType;
	}

	public void setPriceType(BalanceType priceType) {
		this.priceType = priceType;
	}

	public String getOperation() {
		if (this.operationType != null) {
			return this.operationType.getTitle();
		}
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getPlatformNo() {
		return platformNo;
	}

	public void setPlatformNo(String platformNo) {
		this.platformNo = platformNo;
	}

	public String getPlatformName() {
		return platformNo == null ? null : PlatformUtil.converte(platformNo).getTitle();
	}
}
